﻿@model VendorNavigationModel
@using Nop.Web.Models.Catalog;
@if (Model.Vendors.Count > 0)
{
    <nav class="sidebar light">
        <ul>
            <li class="title">
                @T("Vendors")
            </li>
            <li class="stick">
                <a class="dropdown-toggle" href="#"><i class="icon-tree-view"></i>@T("Vendors")</a>
                <ul class="dropdown-menu" data-role="dropdown">
                    @foreach (var vendor in Model.Vendors)
                    {
                        <li><a href="@Url.RouteUrl("Vendor", new { SeName = vendor.SeName })">@vendor.Name</a>
                        </li>
                    }
                </ul>            
                @if (Model.TotalVendors > Model.Vendors.Count)
                {
                    <div class="view-all">
                        <a href="@Url.RouteUrl("VendorList")">@T("Vendors.ViewAll")</a>
                    </div>
                }
            </li>
        </ul>
    </nav>
}